<script setup lang="ts">
import { usePostStore } from '@/store/post';

const store = usePostStore();

// onMounted(() => {
//   store.queryResult()
// })

</script>

<template>
  <el-table :data="store.queryData" style="width: 100%;" size="small" height="160" empty-text="暂无数据，请先查询">
    <el-table-column v-for="col in store.columns" :key="col" :prop="col" :label="col" />
  </el-table>
</template>

<style scoped lang="scss">

</style>